package com.example.ecommercemanagesystem.service.impl;


import com.example.ecommercemanagesystem.dao.TypeDao;
import com.example.ecommercemanagesystem.entity.Type;
import com.example.ecommercemanagesystem.service.TypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {
    @Resource
    private TypeDao typeDao;

    public TypeDao getTypeDao() {
        return typeDao;
    }

    public void setTypeDao(TypeDao typeDao) {
        this.typeDao = typeDao;
    }

    @Override
    public List<Type> getAllType() {
        return typeDao.queryType();
    }
}
